<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.4"/>
<title>StrangeIoC: strange.extensions.injector.api.IInjectionBinder Interface Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">StrangeIoC
   &#160;<span id="projectnumber">0.6.0</span>
   </div>
   <div id="projectbrief">The IoC/Binding Framework for Unity3D and C#</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.4 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Events</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacestrange.html">strange</a></li><li class="navelem"><a class="el" href="namespacestrange_1_1extensions.html">extensions</a></li><li class="navelem"><a class="el" href="namespacestrange_1_1extensions_1_1injector.html">injector</a></li><li class="navelem"><a class="el" href="namespacestrange_1_1extensions_1_1injector_1_1api.html">api</a></li><li class="navelem"><a class="el" href="interfacestrange_1_1extensions_1_1injector_1_1api_1_1_i_injection_binder.html">IInjectionBinder</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="interfacestrange_1_1extensions_1_1injector_1_1api_1_1_i_injection_binder-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">strange.extensions.injector.api.IInjectionBinder Interface Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A Binder that implements Dependency Injection in StrangeIoC.  
 <a href="interfacestrange_1_1extensions_1_1injector_1_1api_1_1_i_injection_binder.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for strange.extensions.injector.api.IInjectionBinder:</div>
<div class="dyncontent">
 <div class="center">
  <img src="interfacestrange_1_1extensions_1_1injector_1_1api_1_1_i_injection_binder.png" usemap="#strange.extensions.injector.api.IInjectionBinder_map" alt=""/>
  <map id="strange.extensions.injector.api.IInjectionBinder_map" name="strange.extensions.injector.api.IInjectionBinder_map">
<area href="interfacestrange_1_1framework_1_1api_1_1_i_instance_provider.html" title="Provides an instance of the specified Type When all you need is a new instance, use this instead of I..." alt="strange.framework.api.IInstanceProvider" shape="rect" coords="181,0,533,24"/>
<area href="interfacestrange_1_1extensions_1_1injector_1_1api_1_1_i_cross_context_injection_binder.html" alt="strange.extensions.injector.api.ICrossContextInjectionBinder" shape="rect" coords="0,112,352,136"/>
<area href="classstrange_1_1extensions_1_1injector_1_1impl_1_1_injection_binder.html" title="The Binder for creating Injection mappings. " alt="strange.extensions.injector.impl.InjectionBinder" shape="rect" coords="362,112,714,136"/>
<area href="classstrange_1_1extensions_1_1injector_1_1impl_1_1_cross_context_injection_binder.html" title="A special version of InjectionBinder that allows shared injections across multiple Contexts..." alt="strange.extensions.injector.impl.CrossContextInjectionBinder" shape="rect" coords="0,168,352,192"/>
<area href="classstrange_1_1extensions_1_1injector_1_1impl_1_1_cross_context_injection_binder.html" title="A special version of InjectionBinder that allows shared injections across multiple Contexts..." alt="strange.extensions.injector.impl.CrossContextInjectionBinder" shape="rect" coords="362,168,714,192"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aac899bd51070e8565fabab3a248cf3a5"><td class="memItemLeft" align="right" valign="top">object&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacestrange_1_1extensions_1_1injector_1_1api_1_1_i_injection_binder.html#aac899bd51070e8565fabab3a248cf3a5">GetInstance</a> (Type key, object name)</td></tr>
<tr class="memdesc:aac899bd51070e8565fabab3a248cf3a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve an Instance based on a key/name combo.  <a href="#aac899bd51070e8565fabab3a248cf3a5">More...</a><br/></td></tr>
<tr class="separator:aac899bd51070e8565fabab3a248cf3a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9edea5e4babff105ec4767d84c6b716"><td class="memItemLeft" align="right" valign="top">T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacestrange_1_1extensions_1_1injector_1_1api_1_1_i_injection_binder.html#ae9edea5e4babff105ec4767d84c6b716">GetInstance&lt; T &gt;</a> (object name)</td></tr>
<tr class="memdesc:ae9edea5e4babff105ec4767d84c6b716"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve an Instance based on a key/name combo.  <a href="#ae9edea5e4babff105ec4767d84c6b716">More...</a><br/></td></tr>
<tr class="separator:ae9edea5e4babff105ec4767d84c6b716"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9376845ce4eefd9e2795a6899f48c25"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac9376845ce4eefd9e2795a6899f48c25"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacestrange_1_1extensions_1_1injector_1_1api_1_1_i_injection_binder.html#ac9376845ce4eefd9e2795a6899f48c25">Reflect</a> (List&lt; Type &gt; list)</td></tr>
<tr class="memdesc:ac9376845ce4eefd9e2795a6899f48c25"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reflect all the types in the list Return the number of types in the list, which should be equal to the list length. <br/></td></tr>
<tr class="separator:ac9376845ce4eefd9e2795a6899f48c25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f5f1efc3286ca4358d6ca9443c0f1d2"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacestrange_1_1extensions_1_1injector_1_1api_1_1_i_injection_binder.html#a4f5f1efc3286ca4358d6ca9443c0f1d2">ReflectAll</a> ()</td></tr>
<tr class="memdesc:a4f5f1efc3286ca4358d6ca9443c0f1d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reflect all the types currently registered with InjectionBinder Return the number of types reflected, which should be equal to the number of concrete classes you've mapped.  <a href="#a4f5f1efc3286ca4358d6ca9443c0f1d2">More...</a><br/></td></tr>
<tr class="separator:a4f5f1efc3286ca4358d6ca9443c0f1d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15c29624d07058e29487fa0713b806a3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacestrange_1_1extensions_1_1injector_1_1api_1_1_i_injection_binder.html#a15c29624d07058e29487fa0713b806a3">ResolveBinding</a> (<a class="el" href="interfacestrange_1_1framework_1_1api_1_1_i_binding.html">IBinding</a> binding, object key)</td></tr>
<tr class="memdesc:a15c29624d07058e29487fa0713b806a3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Places individual Bindings into the bindings Dictionary as part of the resolving process  <a href="#a15c29624d07058e29487fa0713b806a3">More...</a><br/></td></tr>
<tr class="separator:a15c29624d07058e29487fa0713b806a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7faee07278ae6f408125b2f5bfe3e380"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7faee07278ae6f408125b2f5bfe3e380"></a>
<a class="el" href="interfacestrange_1_1extensions_1_1injector_1_1api_1_1_i_injection_binding.html">IInjectionBinding</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Bind&lt; T &gt;</b> ()</td></tr>
<tr class="separator:a7faee07278ae6f408125b2f5bfe3e380"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd394dfe8af8c8678ba48e7badf55f8f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afd394dfe8af8c8678ba48e7badf55f8f"></a>
<a class="el" href="interfacestrange_1_1extensions_1_1injector_1_1api_1_1_i_injection_binding.html">IInjectionBinding</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Bind</b> (Type key)</td></tr>
<tr class="separator:afd394dfe8af8c8678ba48e7badf55f8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5602ebd8283eb4d8a44a3346cd56be81"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5602ebd8283eb4d8a44a3346cd56be81"></a>
<a class="el" href="interfacestrange_1_1framework_1_1api_1_1_i_binding.html">IBinding</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Bind</b> (object key)</td></tr>
<tr class="separator:a5602ebd8283eb4d8a44a3346cd56be81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3284a844e2b20f7759bcb29c3a0b5098"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3284a844e2b20f7759bcb29c3a0b5098"></a>
<a class="el" href="interfacestrange_1_1extensions_1_1injector_1_1api_1_1_i_injection_binding.html">IInjectionBinding</a>&#160;</td><td class="memItemRight" valign="bottom"><b>GetBinding&lt; T &gt;</b> ()</td></tr>
<tr class="separator:a3284a844e2b20f7759bcb29c3a0b5098"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5a29e83edcc8653f68504bf9a28fdb8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac5a29e83edcc8653f68504bf9a28fdb8"></a>
<a class="el" href="interfacestrange_1_1extensions_1_1injector_1_1api_1_1_i_injection_binding.html">IInjectionBinding</a>&#160;</td><td class="memItemRight" valign="bottom"><b>GetBinding&lt; T &gt;</b> (object name)</td></tr>
<tr class="separator:ac5a29e83edcc8653f68504bf9a28fdb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03bbd85028a59b540e048a247472caed"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a03bbd85028a59b540e048a247472caed"></a>
<a class="el" href="interfacestrange_1_1extensions_1_1injector_1_1api_1_1_i_injection_binding.html">IInjectionBinding</a>&#160;</td><td class="memItemRight" valign="bottom"><b>GetBinding</b> (object key)</td></tr>
<tr class="separator:a03bbd85028a59b540e048a247472caed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7e0730fe532ac26248969e0c2b46c9c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa7e0730fe532ac26248969e0c2b46c9c"></a>
<a class="el" href="interfacestrange_1_1extensions_1_1injector_1_1api_1_1_i_injection_binding.html">IInjectionBinding</a>&#160;</td><td class="memItemRight" valign="bottom"><b>GetBinding</b> (object key, object name)</td></tr>
<tr class="separator:aa7e0730fe532ac26248969e0c2b46c9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4664b1d4c85a04a30b74dd6cb1e5823"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac4664b1d4c85a04a30b74dd6cb1e5823"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Unbind&lt; T &gt;</b> ()</td></tr>
<tr class="separator:ac4664b1d4c85a04a30b74dd6cb1e5823"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9f3e3392d79e7de66156e0aac3c09d7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa9f3e3392d79e7de66156e0aac3c09d7"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Unbind&lt; T &gt;</b> (object name)</td></tr>
<tr class="separator:aa9f3e3392d79e7de66156e0aac3c09d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a528878415d61df7631451d67995b6802"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a528878415d61df7631451d67995b6802"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Unbind</b> (object key)</td></tr>
<tr class="separator:a528878415d61df7631451d67995b6802"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a747ae97eefa361ad288bd230613ac2a8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a747ae97eefa361ad288bd230613ac2a8"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Unbind</b> (object key, object name)</td></tr>
<tr class="separator:a747ae97eefa361ad288bd230613ac2a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af22c6abf41c878999ea337f0ad093b62"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af22c6abf41c878999ea337f0ad093b62"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Unbind</b> (<a class="el" href="interfacestrange_1_1framework_1_1api_1_1_i_binding.html">IBinding</a> binding)</td></tr>
<tr class="separator:af22c6abf41c878999ea337f0ad093b62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_interfacestrange_1_1framework_1_1api_1_1_i_instance_provider"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_interfacestrange_1_1framework_1_1api_1_1_i_instance_provider')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="interfacestrange_1_1framework_1_1api_1_1_i_instance_provider.html">strange.framework.api.IInstanceProvider</a></td></tr>
<tr class="memitem:a0bec917157343a46d675ad3a8b6ad65c inherit pub_methods_interfacestrange_1_1framework_1_1api_1_1_i_instance_provider"><td class="memItemLeft" align="right" valign="top">T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacestrange_1_1framework_1_1api_1_1_i_instance_provider.html#a0bec917157343a46d675ad3a8b6ad65c">GetInstance&lt; T &gt;</a> ()</td></tr>
<tr class="memdesc:a0bec917157343a46d675ad3a8b6ad65c inherit pub_methods_interfacestrange_1_1framework_1_1api_1_1_i_instance_provider"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve an Instance based on the key.  <a href="#a0bec917157343a46d675ad3a8b6ad65c">More...</a><br/></td></tr>
<tr class="separator:a0bec917157343a46d675ad3a8b6ad65c inherit pub_methods_interfacestrange_1_1framework_1_1api_1_1_i_instance_provider"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e9b3f0300c397c2005204211647a653 inherit pub_methods_interfacestrange_1_1framework_1_1api_1_1_i_instance_provider"><td class="memItemLeft" align="right" valign="top">object&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacestrange_1_1framework_1_1api_1_1_i_instance_provider.html#a6e9b3f0300c397c2005204211647a653">GetInstance</a> (Type key)</td></tr>
<tr class="memdesc:a6e9b3f0300c397c2005204211647a653 inherit pub_methods_interfacestrange_1_1framework_1_1api_1_1_i_instance_provider"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve an Instance based on the key.  <a href="#a6e9b3f0300c397c2005204211647a653">More...</a><br/></td></tr>
<tr class="separator:a6e9b3f0300c397c2005204211647a653 inherit pub_methods_interfacestrange_1_1framework_1_1api_1_1_i_instance_provider"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a372922eecd2526bfeaa5d802526cef44"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a372922eecd2526bfeaa5d802526cef44"></a>
<a class="el" href="interfacestrange_1_1extensions_1_1injector_1_1api_1_1_i_injector.html">IInjector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacestrange_1_1extensions_1_1injector_1_1api_1_1_i_injection_binder.html#a372922eecd2526bfeaa5d802526cef44">injector</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a372922eecd2526bfeaa5d802526cef44"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get or set an Injector to use. By default, Injector instantiates it's own, but that can be overridden. <br/></td></tr>
<tr class="separator:a372922eecd2526bfeaa5d802526cef44"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A Binder that implements Dependency Injection in StrangeIoC. </p>
<p>Keys in this Binder are always Types, that is, they represent either Classes or Interfaces, not values. Values may be either Types or values, depending on the situation.</p>
<p>The nature of the instance returned by <code><a class="el" href="interfacestrange_1_1extensions_1_1injector_1_1api_1_1_i_injection_binder.html#aac899bd51070e8565fabab3a248cf3a5" title="Retrieve an Instance based on a key/name combo. ">GetInstance()</a></code> depends on how that Key was mapped.</p>
<p>examples:</p>
<p>//Returns a new instance of SimpleInterfaceImplementer.</p>
<p><code>Bind&lt;ISimpleInterface&gt;().To&lt;SimpleInterfaceImplementer&gt;();</code></p>
<p>//Returns a Singleton instance of SimpleInterfaceImplementer.</p>
<p><code>Bind&lt;ISimpleInterface&gt;().To&lt;SimpleInterfaceImplementer&gt;().ToSingleton();</code></p>
<p>//Returns a Singleton instance of SimpleInterfaceImplementer.</p>
<p><code>Bind&lt;ISimpleInterface&gt;().ToValue(new SimpleInterfaceImplementer());</code></p>
<p>//Returns the value 42.</p>
<p><code>Bind&lt;int&gt;().ToValue(42);</code></p>
<p>//Returns a named instance of SimpleInterfaceImplementer for those whose //injections specify this name. Note that once requested, this //same instance will be returned on any future request for that named instance.</p>
<p><code>Bind&lt;ISimpleInterface&gt;().To&lt;SimpleInterfaceImplementer&gt;().ToName(SomeEnum.MY_ENUM);</code></p>
<p>//Raises an Exception. string does not Implement ISimpleInterface.</p>
<p><code>Bind&lt;ISimpleInterface&gt;().To&lt;string&gt;();</code></p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="interfacestrange_1_1extensions_1_1injector_1_1api_1_1_i_injection_binding.html" title="The Binding form for the Injection system. ">strange.extensions.injector.api.IInjectionBinding</a> </dd></dl>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aac899bd51070e8565fabab3a248cf3a5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">object strange.extensions.injector.api.IInjectionBinder.GetInstance </td>
          <td>(</td>
          <td class="paramtype">Type&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieve an Instance based on a key/name combo. </p>
<p>ex. <code>injectionBinder.Get(typeof(ISomeInterface), SomeEnum.MY_ENUM);</code> </p>

<p>Implemented in <a class="el" href="classstrange_1_1extensions_1_1injector_1_1impl_1_1_injection_binder.html#af695f0c65ded51228d02afc0374bacd5">strange.extensions.injector.impl.InjectionBinder</a>.</p>

</div>
</div>
<a class="anchor" id="ae9edea5e4babff105ec4767d84c6b716"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">T <a class="el" href="interfacestrange_1_1extensions_1_1injector_1_1api_1_1_i_injection_binder.html#aac899bd51070e8565fabab3a248cf3a5">strange.extensions.injector.api.IInjectionBinder.GetInstance</a>&lt; T &gt; </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>name</em>)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieve an Instance based on a key/name combo. </p>
<p>ex. <code>injectionBinder.Get&lt;cISomeInterface&gt;(SomeEnum.MY_ENUM);</code> </p>

<p>Implemented in <a class="el" href="classstrange_1_1extensions_1_1injector_1_1impl_1_1_injection_binder.html#a39f1604a085f9d386adff244a7ad4e69">strange.extensions.injector.impl.InjectionBinder</a>.</p>

</div>
</div>
<a class="anchor" id="a4f5f1efc3286ca4358d6ca9443c0f1d2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int strange.extensions.injector.api.IInjectionBinder.ReflectAll </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reflect all the types currently registered with InjectionBinder Return the number of types reflected, which should be equal to the number of concrete classes you've mapped. </p>

<p>Implemented in <a class="el" href="classstrange_1_1extensions_1_1injector_1_1impl_1_1_injection_binder.html#a5a03e345237a56af33953e215852526b">strange.extensions.injector.impl.InjectionBinder</a>.</p>

</div>
</div>
<a class="anchor" id="a15c29624d07058e29487fa0713b806a3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void strange.extensions.injector.api.IInjectionBinder.ResolveBinding </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="interfacestrange_1_1framework_1_1api_1_1_i_binding.html">IBinding</a>&#160;</td>
          <td class="paramname"><em>binding</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>key</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Places individual Bindings into the bindings Dictionary as part of the resolving process </p>
<p>Note that while some Bindings may store multiple keys, each key takes a unique position in the bindings Dictionary.</p>
<p>Conflicts in the course of fluent binding are expected, but GetBinding will throw an error if there are any unresolved conflicts. </p>

<p>Implemented in <a class="el" href="classstrange_1_1extensions_1_1injector_1_1impl_1_1_cross_context_injection_binder.html#ad93ea865f14a6249af575633f6472a7e">strange.extensions.injector.impl.CrossContextInjectionBinder</a>.</p>

</div>
</div>
<hr/>The documentation for this interface was generated from the following file:<ul>
<li>StrangeIoC/scripts/strange/extensions/injector/api/IInjectionBinder.cs</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Jan 28 2014 13:07:05 for StrangeIoC by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.4
</small></address>
</body>
</html>
